<?php
/**
 * @package     Joomla.Site
 * @subpackage  mod_articles_popular
 *
 * @copyright   Copyright (C) 2005 - 2015 Open Source Matters, Inc. All rights reserved.
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */

defined('_JEXEC') or die;
?>
<ul class="media mostread<?php echo $moduleclass_sfx; ?>">
<?php foreach ($list as $item) : ?>
<?php 
$images=json_decode($item->images);

?>
	<li class="row-fluid ">
		<div class="media">	    
		    	
		    	<?php if(empty($images->image_intro)):?>
		    	<a class="pull-left" href="<?php echo $item->link; ?>">
		    	<img alt="" class="media-object" data-src="holder.js/64x64">
		    	 </a>
		    	<?php else:?>
		    	<a class="pull-left" href="<?php echo $item->link; ?>" style="background-image: url('<?php echo $images->image_intro;?>');"></a>		    	
		    	<?php endif;?>  
		    		    
		        <a href="<?php echo $item->link; ?>"><?php echo $item->title; ?></a> <span class="view"><?php echo $item->hits?></span>	
		    	
		    				
	    </div>    
	</li>
<?php endforeach; ?>
</ul>
